package com.zyy.smartcity1129.movie;

import android.view.View;
import android.widget.LinearLayout;

import com.zyy.smartcity1129.BaseFragment;
import com.zyy.smartcity1129.R;

/**
 * @ClassName: MovieMeFragment$
 * @Description: 作用
 * @Author: letquit
 * @CreateDate: 23/11/2021$
 * @Version: 1.0
 */
public class MovieMeFragment extends BaseFragment {
    private LinearLayout lineMovieMe1;
    private LinearLayout lineMovieMe2;
    private LinearLayout lineMovieMe3;

    @Override
    protected int layId() {
        return R.layout.fragment_movie_me;
    }

    @Override
    protected String title() {
        return null;
    }

    @Override
    protected boolean back() {
        return false;
    }

    @Override
    protected Boolean bottom() {
        return false;
    }

    @Override
    protected void init(View v) {
        MovieFragment.mutableLiveData.postValue("我的");
        initView(v);
        lineMovieMe1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                add(new MovieOrderFragment());
            }
        });
        lineMovieMe2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                add(new MovieTicketFragment());
            }
        });
        lineMovieMe3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                add(new MovieFeedbackFragment());
            }
        });
    }

    private void initView(View v) {
        lineMovieMe1 = (LinearLayout) v.findViewById(R.id.lineMovieMe1);
        lineMovieMe2 = (LinearLayout) v.findViewById(R.id.lineMovieMe2);
        lineMovieMe3 = (LinearLayout) v.findViewById(R.id.lineMovieMe3);
    }
}
